package com.fpd.enums;

/**
 * 客户来源枚举
 *
 * @author Monster
 */
public enum CustSourceEnum {
	SOURCE1("1", "律师函来电"),
	SOURCE2("2", "律师函加微信"),
	SOURCE3("3", "甲方短信来电"),
	SOURCE4("4", "律所短信来电"),
	SOURCE5("5", "短信律师函来电"),
	SOURCE6("6", "IB反馈跟进"),
	SOURCE7("7", "主动外呼"),
	SOURCE8("8", "网络客服部转入"),
	SOURCE9("9", "划扣"),
	SOURCE10("10", "网络部座机"),
	SOURCE11("11", "网络部瑞玛"),
	SOURCE12("12", "网络部QQ"),
	SOURCE13("13", "网络部微信"),
	SOURCE14("14", "网络部公众号"),
	SOURCE15("15", "网络部183手机"),
	SOURCE16("16", "网络部186手机"),
	SOURCE17("17", "自然回款");

    private String value;
    private String name;

    CustSourceEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getNameByValue(String value) {
        for (CustSourceEnum ate : CustSourceEnum.values()) {
            if (ate.getValue().equals(value)) {
                return ate.getName();
            }
        }
        return "";
    }
}
